-- GENERATED SPELL FOR [Warchief Blackhand] --


function spell0_21752(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(37472,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21752', 10000, 1)
end

function spell1_21752(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(37476,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21752', 0, 1)
end

function Sorts_21752(pUnit, Event)
local choix_sorts_21752 = math.random(0, 1)
if choix_sorts_21752 == 0 then
pUnit:RegisterEvent('spell0_21752', 1, 1)
end
if choix_sorts_21752 == 1 then
pUnit:RegisterEvent('spell1_21752', 1, 1)
end
end

function mob21752_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21752', math.random(1500, 3000), 1)
end

function mob21752_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21752_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21752_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21752, 1, 'mob21752_Action')
RegisterUnitEvent(21752, 2, 'mob21752_Leave')
RegisterUnitEvent(21752, 3, 'mob21752_Kill')
RegisterUnitEvent(21752, 4, 'mob21752_Die')
